class AutoUser < ActiveRecord::Base
  set_table_name "users"
  belongs_to :education
  belongs_to :user_type
  file_column :image

  attr_accessor :password_confirmation

  def show_image
    word = ''
    begin
      word = "<img src='/auto_user/image/#{id}/#{image.split('/').last}'/>".html_safe
    rescue
      word = ''
    end
    return word
  end
end
